package com.pl.config.security;

import javax.servlet.http.HttpServletRequest;

import org.springframework.security.authentication.AuthenticationDetailsSource;
import org.springframework.security.web.authentication.WebAuthenticationDetails;
import org.springframework.stereotype.Component;

/**
 * class name:MyAuthenticationDetailsSource <BR>
 * class description: 登录表单扩展 <BR>
 * Remark: <BR>
 * @version 1.00 2019年11月22日
 * @author wangjian
 */
@Component("myAuthenticationDetailsSource")
public class MyAuthenticationDetailsSource implements AuthenticationDetailsSource<HttpServletRequest, WebAuthenticationDetails> {

	@Override
	public WebAuthenticationDetails buildDetails(HttpServletRequest context) {
		return new MyWebAuthenticationDetails(context);
	}
}
